/**
* -------------------------------------------------------------
* @author  cl
* @date: 2021-12-28 17:28:05
* @description: 上传文件bind表 controller
* -------------------------------------------------------------
* @version 1.0.0
* @Copyright (c) 中科星图-版权所有
*/
package com.geovis.boot.service.demo.file.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.geovis.boot.common.dto.Result;
import com.geovis.boot.common.util.RedisUtils;
import com.geovis.boot.common.util.ResultUtil;
import com.geovis.boot.service.demo.file.entity.FileBind;
import com.geovis.boot.service.demo.file.entity.SysUser;
import com.geovis.boot.service.demo.file.service.IFileBindService;
import com.geovis.boot.service.demo.file.service.UserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

@Slf4j
@RestController
@Api(description = "上传文件bind表管理接口")
public class UserController {

    @Resource
    UserService userService;

    @ResponseBody
    @PostMapping(value = "login")
    public Result login(String username, String password){
        SysUser sysUser = userService.queryByUserName(username);
        return new ResultUtil<SysUser>().setData(sysUser);
    }

}
